package cn.tedu.egweibo7.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserRegDTO {
    @NotBlank(message = "昵称不能为空白")
    @ApiModelProperty(value = "昵称", required = true, dataType = "string")
    private String nickname;
    @NotBlank(message = "密码不能为空白")
    @Size(min = 6,max = 12, message = "密码必须为6-12之间")
    @ApiModelProperty(value = "密码", required = true, dataType = "string")
    private String password;
    @ApiModelProperty(value = "用户名", required = true, dataType = "string")
    @NotBlank(message = "用户名不能为空白")
    private String username;
}
